Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.09] Fix the PJA type issue when mapping renames over nested lists. #5414

Merged
merged 1 commit into from Jan 31, 2018

Conversation

jmchilton
Copy link
Member

No description provided.

# Either a HDCA or a DCE - only HDCA has a name.
has_collection = input_assoc.dataset_collection
if hasattr(has_collection, "name"):
replacement = has_collection.name
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd write it as:

                    if input_assoc.name == input_file_var:
                        # Either a HDCA or a DCE - only HDCA has a name.
                        has_collection = input_assoc.dataset_collection
                        if has_collection and hasattr(has_collection, "name"):
                            replacement = has_collection.name

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes - a lot better - I missed the context here thanks!

@mvdbeek
Copy link
Member

mvdbeek commented Jan 31, 2018

Thanks @jmchilton !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants